package com.mcarrot.site.service;

import java.util.Date;
import java.util.List;

import com.mcarrot.site.common.Constants;
import com.mcarrot.site.model.Affair;

public interface AffairService extends Constants{
	Long saveOrUpdate(Affair affair);
	Long del(Integer affairId);
	Affair findById(Integer affairId);
	Integer getCount(String key, Date startDate, Date endDate);
	List<Affair> listAffairs(String key, Date startDate, Date endDate, Integer start, Integer limit);
}
